From: Florian Müllner Date: Mon, 20 Aug 2012 20:16:21 +0000 (+0200) Subject: messageTray: Make toggle-message-tray available when up X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5425 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2434af7e8a25d46b5c6b20b05e0f7957ece803fd;p=gnome-shell.git messageTray: Make toggle-message-tray available when up It makes so much sense that the setting even has 'toggle' in its name. https://bugzilla.gnome.org/show_bug.cgi?id=688202 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 262ea1535..50fd3b4ea 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1518,14 +1518,18 @@ const MessageTray = new Lang.Class({ Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated)); - global.display.add_keybinding('toggle-message-tray', - new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }), - Meta.KeyBindingFlags.NONE, - Lang.bind(this, this.toggleAndNavigate)); - global.display.add_keybinding('focus-active-notification', - new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }), - Meta.KeyBindingFlags.NONE, - Lang.bind(this, this._expandActiveNotification)); + Main.wm.addKeybinding('toggle-message-tray', + new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }), + Meta.KeyBindingFlags.NONE, + Main.KeybindingMode.MESSAGE_TRAY | + Main.KeybindingMode.OVERVIEW, + Lang.bind(this, this.toggleAndNavigate)); + Main.wm.addKeybinding('focus-active-notification', + new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }), + Meta.KeyBindingFlags.NONE, + Main.KeybindingMode.MESSAGE_TRAY | + Main.KeybindingMode.OVERVIEW, + Lang.bind(this, this._expandActiveNotification)); this._summaryItems = []; this._chatSummaryItemsCount = 0;